import java.util.Scanner;

public class h_25 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("输入一个五位数");
        int num=sc.nextInt();
        int ge=num%10;
        int shi=num/10%10;
        int qian=num/1000%10;
        int wan=num/10000%10;
        if((ge==wan)&&(shi==qian)){
            System.out.println("是回文数");
        }else {
            System.out.println("不是回文数");
        }
    }
}
